package com.itheima.feign;

import com.itheima.pojo.CommentResult;
import com.itheima.pojo.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "cloud-provider-service")
public interface PaymentFeign {
    @GetMapping("/payment/findById/{id}")
    public CommentResult findById(@PathVariable("id") Integer id);

    @PostMapping("/payment/insert")
    public CommentResult insert(@RequestBody Payment payment);
}
